package mapper;

import org.apache.ibatis.annotations.MapKey;
import pojo.User;

import java.util.List;
import java.util.Map;

public interface ParameterMapper {

    List<User> getAllUser();

    User getUserById(Integer id);

    Integer getCount();

    Map<String, Object> getUserByIdToMap(Integer id);

    List<Map<String, Object>> getAllUserToMapList();

    @MapKey("id")
        // Map<String, Map<String, Object>>
    Map<String, Object> getAllUserToMap();
}
